package team.archai.nexus.boot.web.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author lishibin
 * @desc: 基础响应实体
 * @date 2021-11-18
 */
@Getter
@Setter
@Schema(description = "通用响应实体")
public class ResponseModel<T> implements Serializable {

    @Schema(description = "返回状态码", example = "200")
    private Integer code;
    @Schema(description = "返回消息体")
    private String msg;
    @Schema(description = "返回数据")
    private T data;
}
